<?php
/**
 * Created by PhpStorm.
 * User: zhangrongxiang
 * Date: 2017/7/19
 * Time: 下午10:31
 */


readline_completion_function(function ($cmd){
    if($cmd == 'l'){
        return ['ls' ,'pwd' ,'uname'];
    }
    else
        return $cmd
;
});
if($cmd = readline("input .... \n")){

}